﻿//通用shown自动调用些方式
function FormShown() {
    mini.parse();
}


//加载用户列表
function LoadListData() {
    //var sTbName = "UserClass";
    var mCorpID = mini.getbyName("FCorpID").getValue();
        var grid = mini.get("datagrid1");
        grid.load({ CorpID: mCorpID });
    }

function onSelectOne(e) {
    var grid = mini.get("datagrid1");
    var rec = grid.getSelecteds();
    if (rec) {
        CloseWindow(rec);
    }
}

function SetData(data) {
    mini.getbyName("FCorpID").setValue(data.objectid);
    LoadListData();
}